package com.lightboat.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.lightboat.system.domain.CrmUserFollowRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户跟进记录Mapper接口
 * 
 * @author lightboat
 * @date 2025-08-22
 */
@Mapper
@Repository
public interface CrmUserFollowRecordMapper extends BaseMapper<CrmUserFollowRecord>{

    /**
     * 查询用户跟进记录列表
     * 
     * @param crmUserFollowRecord 用户跟进记录
     * @return 用户跟进记录集合
     */
    public List<CrmUserFollowRecord> selectCrmUserFollowRecordList(CrmUserFollowRecord crmUserFollowRecord);

    /**
     * 删除用户跟进记录
     * 
     * @param id 用户跟进记录主键
     * @return 结果
     */
    public int deleteCrmUserFollowRecordById(Long id);

    /**
     * 批量删除用户跟进记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCrmUserFollowRecordByIds(Long[] ids);

    /**
     *  查询用户跟进记录
     * @param wrapper
     * @return
     */
    List<CrmUserFollowRecord> selectCrmUserFollowRecord(@Param(Constants.WRAPPER) Wrapper<?> wrapper);
}
